package cn.hcbycloud.gateway.service.impl;

import cn.hcbycloud.common.core.config.IgnoreUrlsConfig;
import cn.hcbycloud.gateway.service.AbsGatewayInterceptPathService;
import cn.hutool.core.collection.CollUtil;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author gaoh
 * @desc 网关URL路径匹配实现类
 * @date 2022年01月31日 上午 9:43
 */
@Service("gatewayInterceptPathService")
public class GatewayInterceptPathServiceImpl extends AbsGatewayInterceptPathService {
    /**
     * 设置忽略鉴权认证的拦截URL
     * @return
     */
    @Override
    protected List<String> ignoreAuthUrls() {
        List<String> ignoreAuthUrlsList = CollUtil.newArrayList();
        ignoreAuthUrlsList.addAll(IgnoreUrlsConfig.NACOS_IGNORE_URLS);
        return ignoreAuthUrlsList;
    }
}